/**
 * Created by wqz806687102 on 2016/1/11.
 */
angular.module('QC').config(['$stateProvider', '$urlRouterProvider',
    function ($stateProvider, $urlRouterProvider) {
        $stateProvider.
            state('index.QCNorm', {
                url: '/QCNorm/Edit',
                templateUrl: 'modules/QC/client/views/QCNorm.client.view.html',
                controller: 'QCNormController',
                access: {requiredAuthentication: true}
            }).
            state('index.QCNormById', {
                url: '/QCNorm/Edit/:id',
                templateUrl: 'modules/QC/client/views/QCNorm.client.view.html',
                controller: 'QCNormController',
                access: {requiredAuthentication: true}
            }).
            state('index.QCNormList', {
                url: '/QCNorm/List',
                templateUrl: 'modules/QC/client/views/QCNormList.client.view.html',
                controller: 'QCNormListController',
                access: {requiredAuthentication: true}
            }).
            state('index.QCStandard', {
                url: '/QCStandard/Edit',
                templateUrl: 'modules/QC/client/views/QCStandard.client.view.html',
                controller: 'QCStandardController',
                access: {requiredAuthentication: true}
            }).
            state('index.QCStandardById', {
                url: '/QCStandard/Edit/:id',
                templateUrl: 'modules/QC/client/views/QCStandard.client.view.html',
                controller: 'QCStandardController',
                access: {requiredAuthentication: true}
            }).
            state('index.QCStandardList', {
                url: '/QCStandard/List',
                templateUrl: 'modules/QC/client/views/QCStandardList.client.view.html',
                controller: 'QCStandardListController',
                access: {requiredAuthentication: true}
            }).
            state('index.QualityRecord',{
                url:'/QualityRecord/Edit',
                templateUrl:'modules/QC/client/views/QualityRecord.client.view.html',
                controller:'QualityRecordController',
                access:{requiredAuthentication: true}
            }).
            //不良类型绑定
            state('index.BadTypeBind', {
                url: '/BadTypeBind/Edit',
                templateUrl: 'modules/QC/client/views/BadTypeBind.client.view.html',
                controller: 'BadTypeBindController',
                access: { requiredAuthentication: true }
            });
    }
]);
